package com.bm.main;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import com.bm.util.MessagePrinter;
import com.bm.util.PropertiesHandler;
import java.io.*;

/**
 *
 * @author LENOVO
 */
public class Main {

    private static PropertiesHandler properties;
    private static final boolean showMessage = true;
    private static final boolean showLog = true;
    public static final String MacAdress = "54:04:a6:da:25:61";
    private static SocketChecker serverChecker;


    public static void main(String args[]) throws IOException {
        properties = new PropertiesHandler();        
        Object[] clientID = {MacAdress};
        serverChecker = new SocketChecker();
        String responServer = (String) serverChecker.getSocketClient().execute("MISMS.initServer", clientID);
        MessagePrinter.print(responServer);
        MessagePrinter.print("Last Update 20/09/2013 Modify Shtdown process");

        MISMS mainProccess = new MISMS(showMessage, showLog, String.valueOf(properties.getIdModul()));
        mainProccess.run();
    }
}
